package com.ssm.spring.controller;

import com.ssm.spring.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

/**
 * Author  zxy
 * Date  2022/11/11 上午 11:19
 */
// @Controller("controller")   // 设置bean的id (一般根据类名获取，不用id)
@Controller
public class UserController {

    @Autowired
    private UserService userService;

    public void saveUser(){
        userService.saveUser();
    }

}
